home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5842 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: newsfeed.internetmci.com!xmission!news
  2. From: tknarr@xmission.com   ( Todd Knarr )
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Undefined behavior? on type conversion, was: Re: Hungarian notation
  5. Date: 7 Feb 1996 03:43:44 GMT
  6. Organization: Chaos Central
  7. Message-ID: <4f975g$g18@news.xmission.com>
  8. References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl> <4er2qo$h2s@galaxy.ucr.edu> <31118641.6802368@nntp.ix.netcom.com> <4eurpq$b75@news.xmission.com> <31137427.133220928@nntp.ix.netcom.com>
  9. Reply-To: tknarr@xmission.com  ( Todd Knarr )
  10. NNTP-Posting-Host: slc78.xmission.com
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <31137427.133220928@nntp.ix.netcom.com>, miker3@ix.netcom.com (Mike Rubenstein) writes:
  14. >No, I can't tell that you read the standard conservatively.  You seem
  15. >to be adding things that just aren't there.  You're saying that
  16.  
  17. The thing is, I don't recall anything in the standard where "result"
  18. precludes side-effects. So, I don't assume there is such a prohibition.
  19. I may be wrong, but if I am I probably won't break code because of it.
  20.  
  21. >The standard does not say that a machine must have the ability to do
  22. >multiplication either.  That doesn't mean that an implemenation can
  23. >simply give an exception if you do a multiplication -- it must handle
  24. >it in software since the standard requires a C implementation be able
  25. >to do multiplication.
  26.  
  27. Except that it does require multiplication to be done, and it does
  28. leave the results of things like overflow up to the application. Ditto
  29. the result of / when the second operand is 0.
  30.  
  31. Unfortunately, for the last few weeks I've been doing the antithesis
  32. of language-lawyering. I'm going to drop this until I can dig the
  33. right books out from under the piles ( I hate RTFB references ).
  34.  
  35. --
  36. Todd Knarr : tknarr@xmission.com      |  finger for PGP public key
  37.                                       |  Member, USENET Cabal
  38.  
  39. Seriously, I don't want to die just yet.  I don't care how
  40. good-looking they are, I! don't! want! to! die!"
  41.                                         -- Megazone ( UF1 )
  42.  
  43.